package com.travel.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单视图对象，用于前端展示
 */
@Data
@ApiModel(value = "OrderVO", description = "订单视图对象")
public class OrderVO {


    @ApiModelProperty(value = "报名id", example = "1")
    private Integer id;

    @ApiModelProperty(value = "订单号", example = "20230615100001001")
    private String orderNo;

    @ApiModelProperty(value = "产品名称", example = "旅顺口精品一日游")
    private String productName;

    @ApiModelProperty(value = "购买人", example = "150.00")
    private String name;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @ApiModelProperty(value = "总价格", example = "2")
    private Integer totalPrice;

    @ApiModelProperty(value = "订单状态：0-代付款；1-已付款；2-已取消等", example = "0")
    private Integer status;
    @ApiModelProperty(value = "成人价格", example = "158.00", position = 3)
    private BigDecimal adultPrice;

    @ApiModelProperty(value = "小孩价格", example = "88.00", position = 4)
    private BigDecimal childPrice;
    @ApiModelProperty(value = "订单状态", example = "2023-06-15 10:00:01")
    private String statusText;
    @ApiModelProperty(value = "下单时间", example = "2023-06-15 10:00:01")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "支付二维码(Base64)")
    private String qrCodeBase64;
}